package com.ling.pl.security.view.frame.main.register.fms;

import com.bstek.dorado.view.widget.Container;
import com.bstek.dorado.view.widget.SubViewHolder;
import com.ling.pl.security.view.frame.main.IFrameShortcutActionRegister;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author bo.wang
 * @since 2013-2-5
 */
//@Component
public class FMSHomeActionRegister implements
        IFrameShortcutActionRegister {
    @Value("${ling2.disableLogoutShortcutRegister:false}")
    private boolean disabled;

    public void registerToFrameTop(Container container) {
        SubViewHolder subviewHolder = new SubViewHolder();
        subviewHolder.setSubView("security.view.frame.main.register.fms.FMSHome");
        container.addChild(subviewHolder);
    }

    public void registerToStatusBar(Container container) {

    }

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }

    public int order() {
        return 5;
    }
}
